//
//  APIClient.m
//  智慧小区
//
//  Created by lab603 on 15/6/19.
//  Copyright (c) 2015年 Dreamsoul. All rights reserved.
//

#import "APIClient.h"
@implementation APIClient
//登录
+ (NSString *)relativePathForLogin{
    return [NSString stringWithFormat:@"%@%@",BaseUrl,@"/user/login"];
}
//注册
+ (NSString *)relativePathForRegister{
    return [NSString stringWithFormat:@"%@%@",BaseUrl,@"/user/new"];
}
//获取所有小区
+ (NSString *)relativePathForCommunity{
    return [NSString stringWithFormat:@"%@%@",BaseUrl,@"/user/community"];
}
//获取用户信息
+ (NSString *)relativePathForUserInfo{
    return [NSString stringWithFormat:@"%@%@",BaseUrl,@"/user/me"];
}
//获取报修历史数据
+ (NSString *)relativePathForRepairHistory{
    return [NSString stringWithFormat:@"%@%@",BaseUrl,@"/repair/show"];
}
//新增一条报修
+ (NSString *)relativePathForNewRepair{
    return [NSString stringWithFormat:@"%@%@",BaseUrl,@"/repair/new"];
}
//获得投诉建议历史记录
+ (NSString *)relativePathForComplainHistory{
    return [NSString stringWithFormat:@"%@%@",BaseUrl,@"/suggestion/show"];
}
//新增一条投诉建议记录
+ (NSString *)relativePathForNewComplain{
    return [NSString stringWithFormat:@"%@%@",BaseUrl,@"/suggestion/new"];
}
//获取通知历史纪录
+ (NSString *)relativePathForNoticeHistory{
    return [NSString stringWithFormat:@"%@%@",BaseUrl,@"/notification"];
}
//标记一条通知已读
+ (NSString *)relativePathForNoticeRead:(int)ID{
    return [NSString stringWithFormat:@"%@%@%d",BaseUrl,@"/notification/read/",ID];
}
//获得常用电话列表
+ (NSString *)relativePathForPhoneNumber{
    return [NSString stringWithFormat:@"%@%@",BaseUrl,@"/telephone"];
}
//获得广告列表
+ (NSString *)relativePathForAdvertiseList{
    return [NSString stringWithFormat:@"%@%@",BaseUrl,@"/advertise/show"];
}
//增加广告的点击
+ (NSString *)relativePathForAdvertiseAddClick{
    return [NSString stringWithFormat:@"%@%@",BaseUrl,@"/advertise/click/new"];
}
@end
